﻿using SecsEquip;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EquipSecs300.Parameter
{
    public class CarrierSlotDataInfo
    {
        [Category("卡匣信息"), DisplayName(""), Description("")]
        public int nSlot { get; set; }

        [Category("卡匣信息"), DisplayName(""), Description("")]
        public SlotMap nSlotMapEnum { get; set; }

        [Category("卡匣信息"), DisplayName(""), Description("")]
        public string pLotID { get; set; }

        [Category("卡匣信息"), DisplayName(""), Description("")]
        public string pSubstrateID { get; set; }

        [Category("卡匣信息"), DisplayName(""), Description("")]
        public ProcessJobState nProcessState { get; set; }

        public override string ToString()
        {
            string str = $"nSlot={nSlot};\r\n" +
                $"nSlotMapEnum={nSlotMapEnum};\r\n" +
                $"pLotID={pLotID};\r\n" +
                $"pSubstrateID={pSubstrateID};\r\n" +
                $"nProcessState={nProcessState};\r\n";
            return str;
        }

        public CarrierSlotDataInfo()
        {
            nSlot = 0;
            nSlotMapEnum = SlotMap.UNDEFINED;
            nProcessState = ProcessJobState.QUEUED;
        }
    }
}
